﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="list.aspx.vb" Inherits="HatHotels.Homepage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
   <a href="../rss.aspx"><img style="height: 40px; width: 40px; border: none;" 
            src="image/bigrss.gif" /></a>
        </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataKeyNames="ID" DataSourceID="SqlDataSource1" 
            ForeColor="#333333" GridLines="None" AllowSorting="True" Width="905px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="HotelUrl" 
                    DataNavigateUrlFormatString="{0}" DataTextField="HotelName" 
                    HeaderText="Hotel Name" >
                <FooterStyle BorderStyle="Groove" />
                <ItemStyle BorderStyle="Groove" />
                </asp:HyperLinkField>
                <asp:BoundField DataField="Location" HeaderText="Location" 
                    SortExpression="Location" >
                <ItemStyle BorderStyle="Groove" />
                </asp:BoundField>
                <asp:HyperLinkField DataNavigateUrlFields="PostCode" 
                    DataNavigateUrlFormatString="Http://maps.google.co.uk/?q={0}" 
                    DataTextField="PostCode" HeaderText="location" Text="location" >
                <ItemStyle BorderStyle="Groove" />
                </asp:HyperLinkField>

                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="~/Details.aspx?ID={0}" DataTextField="Picture" 
                    
                    DataTextFormatString="&lt;img src=&quot;image/{0}&quot; class=&quot;Thumbnail&quot; &gt;" 
                    HeaderText="photo" InsertVisible="False" ShowHeader="False" >
                <ControlStyle BorderStyle="None" />
                <ItemStyle BorderStyle="Groove" />
                </asp:HyperLinkField>

                <asp:TemplateField HeaderText="stars">
                <ItemTemplate><h1><%# getstar(Eval("stars"))%></h1> </ItemTemplate>
                
                
                    <ControlStyle BorderStyle="Groove" />
                    <ItemStyle BorderStyle="Groove" />
                
                
                </asp:TemplateField>
                
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HatConnStr %>" 
            ProviderName="<%$ ConnectionStrings:HatConnStr.ProviderName %>" 
            SelectCommand="SELECT * FROM [HotelMainTable]"></asp:SqlDataSource>
    </p>
    <p>
    </p>
    <p>
    </p>
<p>
    </p>
<p>
    </p>
<p>
    </p>
<p>
    </p>
<p>
    </p>
<p>
    </p>
<p>
    </p>
<p>
    </p>
<p>
    </p>
<p>
    </p>
    <p>
    </p>
</asp:Content>
